COM AT^SBAC test - Backup alarm clock
COM V1.0	28.01.2005	T. Kleinmann 	Started
COM V1.1	02.08.2005	T. Kleinmann	Extended read command to check location of file in mobile
##########################################################################################
#ToDo: Check returned path
#ToDo: Make script runnable
#ToDo: 
##########################################################################################

from attglobals import *

##########################################################################################

COM Test command
AT^SBAC=?
WAIT FOR OK

##########################################################################################

COM Read command
AT^SBAC?
WAITFOR (1,'\data\system')

##########################################################################################

COM Write command
COM Actions: 	0	Copy alarmclock.pd from drive 1->0 / Returns false if file is not available
COM		1	Delete alarmclock.pd from drive 0  
COM		2	To be clarified
COM		3	Copy alarmclock.pd from drive 0->1 / Returns false if copy process is not possible.

# 1->0
AT^SBAC=0
WAIT FOR OK

# Delete from 0
AT^SBAC=1
WAIT FOR OK

# 1->0 again
AT^SBAC=0
WAIT FOR OK

# always true?
AT^SBAC=2
WAIT FOR OK

# 0->1 
AT^SBAC=3
WAIT FOR OK





for a in range (0,4):
	COM 'Action: ',a
	ATCMD (1,'AT^SBAC=',a)
	WAIT FOR OK
	WAIT 2000

##########################################################################################